import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';
import set_node_cls from '@feidao/web/atom/browser/ui/set-node-cls';
import render from '@feidao/web/atom/browser/render/render';

import P02 from './P02';
import P03 from './P03';

export default async function a006(fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	// 考试科目编号
	const exam_subjects_id = args[0][0];
	const total_people = args[0][1];
	fd.data.exam_subjects_id = exam_subjects_id;
	fd.data.total_people = total_people;

	// 默认不筛选数据
	render(fd, '', P02, 'P02', 'inner');

	// 分页
	render(fd, '', P03, 'P03', 'inner');

	// 调用事件，显示
	set_node_cls(fd.data.node, 'display-n', false);
}
